Fix for #49
authorjustbur <justin@burkett.cc>
Wed, 22 Jul 2015 16:30:48 +0000 (12:30 -0400)
committerjustbur <justin@burkett.cc>
Wed, 22 Jul 2015 16:30:48 +0000 (12:30 -0400)
Need to check if the prefix has changed when possibly restarting the
timer after paging.

which-key.el

index f58a88abf94d3097de55a557d00148164554cfbb..897eacb2096b03610851e3f5d8a2250f310a3539 100644 (file)
@@ -995,7 +995,10 @@ enough space based on your settings and frame size." prefix-keys)
       (setq timer
             (run-with-idle-timer 0.1 t
              (lambda ()
-               (unless (eq real-last-command 'which-key-show-next-page)
+               (when (or (not (eq real-last-command 'which-key-show-next-page))
+                         (and (< 0 (length (this-single-command-keys)))
+                              (not (equal which-key--current-prefix
+                                          (this-single-command-keys)))))
                  (cancel-timer timer)
                  (which-key--start-timer))))))))